# -!- coding: utf-8 -!-
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
业务中移动系统串行调用
# 文件：credit_flow_msydonline.py
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

# 节点1：17436   37个       进件基础数据+腾讯地图api地址解析+Face++身份证OCR识别+黑名单+百行+ 套餐金额（借款）
credit_node1 =  {
    "DeliveryMobileExistOutstandingBalance":"N",       # 收货人手机号adreeseeMobile在中移相关项目（线上及线下）是否存在未结清贷款   Y/N
    "DeliveryMobileExistRefundBehavior":"N",           # 收货人手机号adreeseeMobile是否存在无息退货（存在退货且未实收利息-未还款退货）行为    Y/N
    "DeliveryMobileExistRefundBehaviorEver": "N",      # 收货人手机号adreeseeMobile是否存在退货行为行为    Y/N
    "applyMobileExistOutstandingBalance":"N",          # 申请人手机号 mobileNo 在中移相关项目（线上及线下）是否存在未结清贷款   Y/N
    "applyMobileExistRefundBehavior":"N",              # 申请人手机号mobileNo是否存在无息退货（存在退货且未实收利息-未还款退货）行为    Y/N
    "applyMobileExistRefundBehaviorEver": "N",         # 申请人手机号mobileNo是否存在退货行为    Y/N
    "baiHangD14TotalQueryNumber":"0",                  # 百行近14天查询次数
    "baiHangD180TotalQueryNumber":"0",                 # 百行近6个月查询次数
    "baiHangD30TotalQueryNumber":"0",                  # 百行近30天查询次数
    "baiHangD7TotalQueryNumber":"0",                   # 百行近7天查询次数
    "baiHangD90TotalQueryNumber":"3",                  # 百行近3个月查询次数
    "baiHangNonRevMaxOverdueStatus":"N",               # 百行非循环历史最严重逾期状态   Y/N
    "baiHangNonRevOverdueCount":"0",                   # 百行非循环累计逾期次数
    "baiHangNonRevRemainingOverdueLoanCount":"0",      # 百行当前逾期循环授信账户数
    "baiHangRevMaxOverdueStatus":"N",                  # 百行循环历史最严重逾期状态
    "baiHangRevOverdueCount":"0",                      # 百行循环累计逾期次数
    "baiHangRevRemainingOverdueAccountCount":"0",      # 百行非循环当前逾期贷款笔数
    "creditAge":"43",                                  # 身份证正面出生年月日 至 申请当天年月日（OCR识别)
    "creditBlkBankCardHitBankCard":"0",                # 客户银行卡号码命中黑名单银行卡号码(bankCardNo)
    "creditBlkBankMblNoHitMblNo":"0",                  # 客户银行卡绑定手机号命中黑名单手机号(bankMobileNo)
    "creditBlkIdCardHitIdCard":"0",                    # 客户身份证命中黑名单身份证(idCardNo)
    "creditBlkMblNoHitMblNo":"0",                      # 客户手机号命中黑名单手机号(mobileNo)
    "creditCusSex": "1",                               # 根据身份证正面性别获取，返回1-男， 0-女
    "creditIdCardPD":"-989",                           # 身份证有效期到期日距今天数(身份证反面证件有效期blackIdCardID-Face++身份证OCR)
    "creditTimeHour":"15",                             # 授信时间（时）
    "idcard":"432821197702284116",                     #
    "idcardExistOutstandingBalance":"N",               # 身份证号匹配是否存在未结清贷款 （线上及线下）Y/N
    "idcardExistRefundBehavior":"N",                   # 身份证号匹配是否存在无息退货行为 （线上及线下）Y/N
    "idcardExistRefundBehaviorEver": "N",              # 身份证号匹配是否存在退货行为 （线上及线下）Y/N
    "jdDeliveryAddressCity":"广州市",                   # 收货地址所属城市(adreeseeAddress)-腾讯地图api地址解析接口
    "jdDeliveryAddressProvince":"广东省",               # 收货地址所属省份(adreeseeAddress)-腾讯地图api地址解析接口
    "jdDeliveryMobileHitBlkMblNo":"0",                 # 收货人手机号命中黑名单手机号(adreeseeMobile)
    "loanAmt":"30000.0",
    "loanPkgAmt":"10000.0",
    "mobile":"18807351662",
    "name":"杨腾欧",
    "processNo":"CW20200507OL000004"
}
# 节点2：17432   1个       天创运营商三要素（idCardNo+idCardUserName+mobileNo）  总38
credit_node2 =  {
    "creditOperator3Verify":"Y",
}

# 节点3：17399   1个       收货人手机号三要素验证是否一致(idCardNo+adreeseeName+adreeseeMobile)  总39
credit_node3 =  {
    "jdDeliveryMobile3Verify":"Y",
}

# 节点4：17362   33个       同盾信贷保镖               总72
credit_node4 =  {
    "tongDunEmailNumberCount":"0",
    "tongDunFraudPoints":"30",
    "tongDunFuzzyList":"N",
    "tongDunIdCardCity":"市辖区",
    "tongDunIdCardProvince":"天津市",
    "tongDunIdNumberCount":"0",
    "tongDunIdNumberHighFocusList":"N",
    "tongDunJusticeRepresentList":"N",
    "tongDunLoseFuzzyList":"N",
    "tongDunLoseList":"N",
    "tongDunLowFocusList":"Y",
    "tongDunMiddleFocusList":"Y",
    "tongDunMobileCity":"北京市",
    "tongDunMobileProvince":"北京市",
    "tongDunOneMonthPlatfromNumber":"3",
    "tongDunOverdueFuzzyList":"N",
    "tongDunOverdueList":"N",
    "tongDunOwingHistory":"N",
    "tongDunOwingTaxesList":"N",
    "tongDunPerformFuzzyList":"N",
    "tongDunPerformList":"N",
    "tongDunPhoneHighFocusList":"N",
    "tongDunPhoneNumberCount":"2",
    "tongDunPhoneOverdueList":"N",
    "tongDunPhoneRepaymentList":"N",
    "tongDunRepaymentList":"N",
    "tongDunRepresentList":"N",
    "tongDunSettleLawsuitList":"N",
    "tongDunSpuriousLibrary":"N",
    "tongDunThreeMonthPlatfromNumber":"5",
    "tongDunTrumpetLibrary":"N",
    "tongDunWantedList":"N",
    "tongDunWeekPlatfromNumber":"2"
}

# 节点5：17354   4个      BaiRong验证风险策略(用户注册授信手机号)v1.3.4-dev下架 +电话邦API  总76
credit_node5 =  {
    #"baiRongBankMblNoStatus":"-989",
    #"baiRongDeliveryMobileStatus":"1",     # 收件人手机号
    #"baiRongTelConsume":"2",
    #"baiRongTelOperation":"3",
    #"baiRongTelPeriod":"4",
    #"baiRongTelStatus":"1",
    "dianHuaBangTelConsume":"11",          # result_204手机消费档次：11-移动、电信[0,50]
    "dianHuaBangTelOperation":"移动",      # result_211运营商 电信，移动，联通，-989-未查得
    "dianHuaBangTelPeriod":"3",            # result_202在网时长 3-表示月数为 (6,12]
    "dianHuaBangTelStatus":"1",            # result_216在网状态 1-在用，2-停用
}

# 节点6：17337   1个    腾讯银行卡四要素验证     总77
credit_node6 =  {
    "tencentCloudBankCard4Verify":"Y",
}
# 节点7：17327   17个   Tencent天御反欺诈     总94
credit_node7 =  {
    "tencentRiskScore": "49",
    "tencentRiskCode1101":"N",
    "tencentRiskCode1102":"N",
    "tencentRiskCode1103":"N",
    "tencentRiskCode1104":"N",
    "tencentRiskCode1105":"Y",
    "tencentRiskCode1106":"N",
    "tencentRiskCode1107":"N",
    "tencentRiskCode1108":"N",
    "tencentRiskCode1201":"N",
    "tencentRiskCode2101":"N",
    "tencentRiskCode3101":"N",
    "tencentRiskCode3102":"N",
    "tencentRiskCode3103":"N",
    "tencentRiskCode3104":"N",
    "tencentRiskCode3201":"N",
    "tencentRiskCode3202":"N",
}
# 节点8：17321   3个    腾讯照片人脸核身2+faceplus Compare 1     总97
credit_node8 =  {
    "facePlusCompareConfidence": "87.453",
    "tencentLivenessPicVerifyConfidence": "100.0",
    "tencentLivenessPicVerifyResult": "成功",
}
# 节点9：17317   0个    该节点入参借款金额loanAmt已在节点1设置    总97
credit_node9 =  {
    "loanAmt":"30000.0",
}